package com.cw.controller;

import com.cw.service.StaffService;
import com.cw.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: MySyetem
 * @description: 员工控制层
 * @author: 张庆恒
 * @create: 2021-08-28 22:47
 **/
@RestController
@RequestMapping("staff")
public class StaffController {
    @Resource
    private StaffService staffService;

    @GetMapping("getAllStaff")
    public R getAllStaff(Integer pageNow,Integer pageSize) {
        return staffService.getAllStaff(pageNow,pageSize);
    }
}
